package com.huweilong.tingshu.data_object;

import lombok.Data;

/**
 * @author 是阿秋啊
 * @date 2022/07/20 11:06
 **/
@Data
// 这里是数据库操作,所以属性名尽量和数据库字段名称一样
// users表
public class UserDO {
    public Integer uid;
    public String username;
    public String password;

    public UserDO(String username, String password) {
        this.username=username;
        this.password = password;
    }

    public UserDO(int uid, String usernaem, String password) {
        this.uid = uid;
        this.username = usernaem;
        this.password = password;
    }
}